#include "config.h"

int main(int argc, char *argv[]) {
    key_t key = ftok(SHM_FPATH, 'a');
    int shm_id = shmget(key, sizeof(int) * 100, 0664 | IPC_CREAT);
    void *ptr = shmat(shm_id, NULL, 0);

    student_t *student = (student_t *)ptr;
    printf("age = %d, name = %s\n", student->age, student->name);

    shmdt(ptr);

    return 0;
}
